package com.jytc.mh.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * MhMsgBoard entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "mh_msg_board")
public class MhMsgBoard implements java.io.Serializable {

	// Fields

	private Integer msgId;
	private String msgTitle;
	private String msgContent;
	private String msgAuthor;
	private String msgTime;
	private String tel;
	private String email;
	private String status;
	private String answerContent;
	private String answerAuthor;
	private String answerTime;

	// Constructors

	/** default constructor */
	public MhMsgBoard() {
	}

	/** minimal constructor */
	public MhMsgBoard(String msgTitle) {
		this.msgTitle = msgTitle;
	}

	/** full constructor */
	public MhMsgBoard(String msgTitle, String msgContent, String msgAuthor,
			String msgTime, String tel, String email, String status,
			String answerContent, String answerAuthor, String answerTime) {
		this.msgTitle = msgTitle;
		this.msgContent = msgContent;
		this.msgAuthor = msgAuthor;
		this.msgTime = msgTime;
		this.tel = tel;
		this.email = email;
		this.status = status;
		this.answerContent = answerContent;
		this.answerAuthor = answerAuthor;
		this.answerTime = answerTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "MSG_ID", unique = true, nullable = false)
	public Integer getMsgId() {
		return this.msgId;
	}

	public void setMsgId(Integer msgId) {
		this.msgId = msgId;
	}

	@Column(name = "MSG_TITLE", nullable = false, length = 100)
	public String getMsgTitle() {
		return this.msgTitle;
	}

	public void setMsgTitle(String msgTitle) {
		this.msgTitle = msgTitle;
	}

	@Column(name = "MSG_CONTENT", length = 1000)
	public String getMsgContent() {
		return this.msgContent;
	}

	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	@Column(name = "MSG_AUTHOR", length = 30)
	public String getMsgAuthor() {
		return this.msgAuthor;
	}

	public void setMsgAuthor(String msgAuthor) {
		this.msgAuthor = msgAuthor;
	}

	@Column(name = "MSG_TIME", length = 14)
	public String getMsgTime() {
		return this.msgTime;
	}

	public void setMsgTime(String msgTime) {
		this.msgTime = msgTime;
	}

	@Column(name = "TEL", length = 20)
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "EMAIL", length = 100)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "STATUS", length = 1)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "ANSWER_CONTENT", length = 1000)
	public String getAnswerContent() {
		return this.answerContent;
	}

	public void setAnswerContent(String answerContent) {
		this.answerContent = answerContent;
	}

	@Column(name = "ANSWER_AUTHOR", length = 30)
	public String getAnswerAuthor() {
		return this.answerAuthor;
	}

	public void setAnswerAuthor(String answerAuthor) {
		this.answerAuthor = answerAuthor;
	}

	@Column(name = "ANSWER_TIME", length = 14)
	public String getAnswerTime() {
		return this.answerTime;
	}

	public void setAnswerTime(String answerTime) {
		this.answerTime = answerTime;
	}

}